sqlserver exists 与 in 的区别
使用 EXISTS 方式 select * from A a where EXISTS(select b.mainInfoId from B b where b.mainInfoId=a.mai ...
使用 EXISTS 方式 select * from A a where EXISTS(select b.mainInfoId from B b where b.mainInfoId=a.mai ...
今天遇到表的删除重建问题,稍微测试了一下。具体内容如下: 1.常规表的重建 if exists(select * from sys.objects where name='tmp' and typ ...